package unit5.collection.linkedlist;

import student.Student;

import java.util.LinkedList;

public class LinkedListceshi {
    public static void main(String[] args) {
        LinkedList ll=new LinkedList();
        Student s1=new Student("流量","3333", "大学校");
        Student s2=new Student("计算机","4444", "小学校");
        Student s3=new Student("偶数","5555", "中学校");
        ll.addFirst(s1);
        ll.addFirst(s2);
        ll.addLast(s3);
        ll.add(s2);
        System.out.println(ll.size());
        System.out.println(ll.getFirst());
        System.out.println(ll.getLast());
    }
}
